package com.ruoyi.canteen.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单操作日志对象 canteen_cp_order_log
 * 
 * @author zhangw
 * @date 2021-09-19
 */
public class CanteenCpOrderLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 操作人 */
    @Excel(name = "操作人")
    private String operator;

    /** 日志类型（1-订单状态变更;2-） */
    @Excel(name = "日志类型", readConverterExp = "1=-订单状态变更;2-")
    private Long logType;

    /** 日志时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日志时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date logTime;

    /** 操作内容 */
    @Excel(name = "操作内容")
    private String logContent;

    /** 日志状态 */
    @Excel(name = "日志状态")
    private Long logStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setOperator(String operator) 
    {
        this.operator = operator;
    }

    public String getOperator() 
    {
        return operator;
    }
    public void setLogType(Long logType) 
    {
        this.logType = logType;
    }

    public Long getLogType() 
    {
        return logType;
    }
    public void setLogTime(Date logTime) 
    {
        this.logTime = logTime;
    }

    public Date getLogTime() 
    {
        return logTime;
    }
    public void setLogContent(String logContent) 
    {
        this.logContent = logContent;
    }

    public String getLogContent() 
    {
        return logContent;
    }
    public void setLogStatus(Long logStatus) 
    {
        this.logStatus = logStatus;
    }

    public Long getLogStatus() 
    {
        return logStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("operator", getOperator())
            .append("logType", getLogType())
            .append("logTime", getLogTime())
            .append("logContent", getLogContent())
            .append("logStatus", getLogStatus())
            .toString();
    }
}
